package com.fsh.anime.controller;

import com.fsh.anime.model.vos.Result;
import com.fsh.anime.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类名称：$CLASSNAME$
 * <p>
 * 作者：fsh
 * 日期：2023/08/20
 */
@RestController
@RequestMapping("/api/dictionary")
public class DictionaryController {

    @Autowired
    private DictionaryService dictionaryService;

    /**
     * 得到字典
     *
     * @return {@link Result}
     */
    @GetMapping("/getDictionary")
    public Result getDictionary(){
        return dictionaryService.getDictionary();
    }

}
